package com.pbc.gmp.service.impl;

import com.pbc.gmp.model.basemodel.Position;
import com.pbc.gmp.dao.PositionMapper;
import com.pbc.gmp.service.IPositionService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *   服务实现类
 * </p>
 *
 * @author kjk
 * @since 2017-04-17
 */
@Service
public class PositionServiceImpl extends ServiceImpl<PositionMapper, Position> implements IPositionService {

    @Resource(name="positionDao")
    private PositionMapper positionMapper;
    @Override
    public Position selectPositionByUserId(Long id) {
        return positionMapper.selectPositionByUserId(id);
    }

    @Override
    public List<Position> selectPositionsByOrgId(Long id) {
        return positionMapper.selectPositionsByOrgId(id);
    }
}
